package com.jeecms.pay.model;

import com.jeecms.pay.api.AbstractPayClient;
import com.jeecms.pay.constant.DevelopStageEnum;
import com.jeecms.pay.constant.PayServiceEnum;

/**
 * 基础参数
 * 
 * @author web
 * 
 */
public class PayBasePara {

	private PayUser payUser;

	private PayServiceEnum payServiceEnum;

	private AbstractPayClient payClient;

	private DevelopStageEnum developStageEnum;

	private PayBasePara() {

	}

	public static PayBasePara create(PayUser payUser, PayServiceEnum payServiceEnum, AbstractPayClient payClient) {
		PayBasePara payBasePara = new PayBasePara();
		payBasePara.setPayClient(payClient);
		payBasePara.setDevelopStageEnum(DevelopStageEnum.real);// 默认真是环境
		payBasePara.setPayUser(payUser);
		payBasePara.setPayServiceEnum(payServiceEnum);
		return payBasePara;
	}

	public PayUser getPayUser() {
		return payUser;
	}

	private void setPayUser(PayUser payUser) {
		this.payUser = payUser;
	}

	public PayServiceEnum getPayServiceEnum() {
		return payServiceEnum;
	}

	private void setPayServiceEnum(PayServiceEnum payServiceEnum) {
		this.payServiceEnum = payServiceEnum;
	}

	public AbstractPayClient getPayClient() {
		return payClient;
	}

	private void setPayClient(AbstractPayClient payClient) {
		this.payClient = payClient;
	}

	public DevelopStageEnum getDevelopStageEnum() {
		return developStageEnum;
	}

	public void setDevelopStageEnum(DevelopStageEnum developStageEnum) {
		this.developStageEnum = developStageEnum;
	}

}
